//
//  FLLView.m
//  07-UITabBarController-拉勾
//
//  Created by LL.F on 16/7/23.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "FLLView.h"

@interface FLLView ()
@property (nonatomic, strong) UIImageView *iconImageView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIImageView *arrowImageView;
@property (nonatomic, strong) UIView *linView;
@end

@implementation FLLView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 15, 32, 32)];;
//        _iconImageView.backgroundColor = [UIColor redColor];
        [self addSubview:_iconImageView];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(30 + _iconImageView.frame.size.width, _iconImageView.frame.origin.y, 200, _iconImageView.frame.size.height)];
//        _titleLabel.backgroundColor = [UIColor blueColor];
        [self addSubview:_titleLabel];
        
        self.arrowImageView = [[UIImageView alloc] initWithFrame:CGRectMake(375 - 55, _iconImageView.frame.origin.y, _iconImageView.frame.size.width, _iconImageView.frame.size.height)];
        _arrowImageView.image = [UIImage imageNamed:@"lbs_suggestion_right"];
//        _arrowImageView.backgroundColor = [UIColor orangeColor];
        [self addSubview:_arrowImageView];
        
        _linView = [[UIView alloc] initWithFrame:CGRectMake(15, frame.size.height - 1, frame.size.width - 15, 1)];
        _linView.backgroundColor = [UIColor colorWithRed:0.94 green:0.94 blue:0.95 alpha:1.00];
        [self addSubview:_linView];
        
        self.backgroundColor = [UIColor whiteColor];
        
    }
    return self;
}
@end
